<?php
	include("MainImport.php");

	class Usuario extends ObjetoPersistente
	{
        private $id;
		private $nombre;
		private $telf;
		private $correo;
		
		
   		public function __construct($id = null, $nombre, $telf, $correo)
   		{
            $this->id = $id;
			$this->nombre = $nombre;
			$this->telf = $telf;
			$this->correo = $correo;			
		}
		
		public function getId(){ return $this->id; } 
        
		public function getNombre(){ return $this->nombre; }
		
		public function getTelf(){ return $this->telf; }
		
		public function getCorreo(){ return $this->correo; }
		
		
		public function save()
		{
			echo "Usuario Salvado: ".$this->getNombre();
		}
		
		public function delete()
		{
			throw new Exception('No Soportado');
		}
			
	}
	
?>